<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <!-- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> -->
    <title>好友</title>
    <link rel="stylesheet" href="__PUBLIC__/Product/css/page_fridents.css">
    <link rel="stylesheet" href="__PUBLIC__/Product/css/lib/animate.css">
    <script src="__PUBLIC__/Product/js/lib/flexible.js"></script>
</head>
<body>
    <div class="friends_box">
        <!-- 头部 -->
        <div class="friends_header">
            <img src="__PUBLIC__/Product/img/fanhui.png" alt="返回">
            <p>成为经营者</p>
        </div>
        <!-- 内容 -->
        <div class="friends_content">
            <p>还没有好友哦，赶紧邀请吧！</p>
        </div>
        <!-- 弹框 -->
        <div class="prompt">
            <p><img src="__PUBLIC__/Product/img/guanbi.png" alt=""></p>
            <table>
                <tr>
                    <td class="wfiiend">
                        <img src="__PUBLIC__/Product/img/chart.png" alt="">
                        <p>微信好友</p>
                    </td>
                    <td class="timeline">
                        <img src="__PUBLIC__/Product/img/pengyq.png" alt="">
                        <p>朋友圈</p>
                    </td>
                    <td class="qZone">
                        <img src="__PUBLIC__/Product/img/qqkj.png" alt="">
                        <p>QQ空间</p>
                    </td>
                </tr>
                <tr>
                    <td class="qfriend">
                        <img src="__PUBLIC__/Product/img/qq.png" alt="">
                        <p>QQ</p>
                    </td>
                    <td class="message">
                        <img src="__PUBLIC__/Product/img/duanx.png" alt="">
                        <p>短信</p>
                    </td>
                </tr>
            </table>
        </div>
        <!-- 蒙版 -->
        <div class="mask"></div>
        <!-- 底部 -->
        <div class="friends_foot">
            <p>立即邀请</p>
        </div>
    </div>
</body>
</html>
<script src="__PUBLIC__/Product/js/lib/jquery3.2.1.js"></script>
<!--<script src='http://lib.qinco.me/dist/weixinShare/js.js'></script>-->
<script src="__PUBLIC__/Product/js/page_fridents.js"></script>
<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script type="text/javascript">  
    var imgUrl = 'http://a.91jfk.com/Public/Product/img/shngcheng.png';  
    var link = 'http://a.91jfk.com/Product/Shopindex/index';  
    var desc = '集分、理财、游戏、商城';  
    var title = "集分卡商城";  
    var appId = "wx4490c484ae4addec"; 
	function weixinShareTimeline(title,desc,link,imgUrl){
		WeixinJSBridge.invoke('shareTimeline',{
			"img_url":imgUrl,
			'img_width':'160',
			'img_height':'160',
			"link":link,
			"desc": desc,
			"title":title
		});
	} 
	function weixinSendAppMessage(title,desc,link,imgUrl){
		WeixinJSBridge.invoke('sendAppMessage',{
			"appid":appId,
			"img_url":imgUrl,
			"img_width":"160",
			"img_height":"160",
			"link":link,
			"desc":desc,
			"title":title
		});
	}
	wx.hideMenuItems({
	    menuList: [		// 要隐藏的菜单项，只能隐藏“传播类”和“保护类”按钮
	    	'onMenuShareTimeline',
			'onMenuShareAppMessage',
			"onMenuShareQQ",
			"onMenuShareQZone",
			'scanQRCode'
		] 
	});
	$('.wfiiend').bind('click',function(){
    	console.log('分享微信好友');
    	//weixinSendAppMessage(title,desc,link,imgUrl);
        // 发送给好友
        //WeixinJSBridge.on('menu:share:appmessage', function (argv) {
            WeixinJSBridge.invoke('sendAppMessage', {
                "appid": "wx4490c484ae4addec",
                "img_url": "http://a.91jfk.com/Public/Product/img/shngcheng.png",
                "img_width": "160",
                "img_height": "160",
                "link": "http://a.91jfk.com/Product/Shopindex/index",
                "desc":  "山无陵，天地合，乃敢与君绝。",
                "title": "爱情贺卡"
            }, function (res) {
                //_report('send_msg', res.err_msg);
            })
        //});
    });
    document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
	    $('.timeline').bind('click',function(){
	    	console.log('分享微信朋友圈');
	    	//weixinShareTimeline(title,desc,link,imgUrl);
	    	// 分享到朋友圈
	        WeixinJSBridge.on('menu:share:timeline', function (argv) {
	            WeixinJSBridge.invoke('shareTimeline', {
	                "img_url": "http://a.91jfk.com/Public/Product/img/shngcheng.png",
                	"img_width": "160",
                	"img_height": "160",
                	"link": "http://a.91jfk.com/Product/Shopindex/index",
	                "desc":  "Best wishes for a wonderful new year.",
	                "title": "新年贺卡"
	            }, function (res) {
	                //_report('timeline', res.err_msg);
	            });
	        });
	    });
	    $('.qZone').bind('click',function(){
	    	console.log('分享qq空间');
	    	
	    });
	    $('.qfriend').bind('click',function(){
	    	console.log('分享qq好友');
	    	
	    });
	    $('.message').bind('click',function(){
	    	console.log('分享短信');
	    });
    }, false)
</script> 